/*
 * @Author: 哈哈 8300395+xue-guangxu@user.noreply.gitee.com
 * @Date: 2022-06-09 14:56:51
 * @LastEditors: 哈哈 8300395+xue-guangxu@user.noreply.gitee.com
 * @LastEditTime: 2022-06-10 08:45:06
 * @FilePath: \移动开发\day03\实验三.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

function f(a){
    var b=parseFloat(a)
    if(a==b)
        return true
    else
        return false
}
console.log(f(1.2))


var add=function(x,y){
    return(x+y)
}
console.log(add(3,3))




var people={
    name:'薛光旭',
    age:22,
    sex:'男',
    height:'170cm',
    like:'新鲜的空气',

    sayHello(){
        console.log(`我是${this.name}，今年${this.age}岁了，我的性别是${this.sex}，身高${this.height}，我最喜欢${this.like}。`)
    }

}
people.sayHello()


